package com.xilihui.xlh.component.ipicker.entities;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * 2017/5/25.
 */
public class Config implements Serializable {
    private static final long serialVersionUID = -5274396544294411841L;

    private int limit = 1;                                  // 可选的图片张数
    private List<String> selected = new ArrayList<>();      // 已选的图片集合
    private boolean cropEnable;                             // 是否需要裁剪
    private boolean cropAsSquare;                           // 是否按正方形裁剪

    // 非正方形裁剪需要设置宽度和高度
    private int cropWidth;          // 裁剪的宽度
    private int cropHeight;         // 裁剪的高度

    public int getLimit() {
        return limit;
    }

    public void setLimit(int limit) {
        this.limit = limit;
    }

    public List<String> getSelected() {
        return selected;
    }

    public void setSeleted(List<String> selected) {
        this.selected = selected;
    }

    public boolean isCropAsSquare() {
        return cropAsSquare;
    }

    public void setCropAsSquare(boolean cropAsSquare) {
        this.cropAsSquare = cropAsSquare;
    }

    public boolean isCropEnable() {
        return cropEnable;
    }

    public void setCropEnable(boolean cropEnable) {
        this.cropEnable = cropEnable;
    }

    public int getCropWidth() {
        return cropWidth;
    }

    public void setCropWidth(int cropWidth) {
        this.cropWidth = cropWidth;
    }

    public int getCropHeight() {
        return cropHeight;
    }

    public void setCropHeight(int cropHeight) {
        this.cropHeight = cropHeight;
    }
}
